<h1>Password Center</h1>

<style type="text/css">
<!--
.passwordChange input, 
.passwordRestore input{width: 120px;}
.passwordChange input.submit, 
.passwordRestore input.submit{width: 127px;}
-->
</style>

<?php
		if($this->session->flashdata('flash_account_password_center'))
		{
				echo $this->session->flashdata('flash_account_password_center');
		}
?>

<?=str_replace(array('&lt;','&gt;','{client_email}'),array('<','>',$user->email),$this->cms->fetchPageContent('account_sec_pass'));?>


<!--<h2>I wish to:</h2>-->
<form action="" method="post" id="pass-center_form">
	<table width="100%">
		<tr valign="top">
			<td width="20%">
				<label><input type="radio" name="type" value="change" checked="checked" />Change</label><br />
				<!--<label><input type="radio" name="type" value="restore" />Recover</label>-->
			</td>
			<td width="30%">
				<!--<label><input type="radio" name="object" value="phonepassword" />Phone Password</label><br />-->
				<label><input type="radio" name="object" value="la" checked="checked" />MT4 &amp; Web Password</label><br />
				<!--<label><input type="radio" name="object" value="account" />Account <?=$user->mt4_uid?> trader's password</label>-->
			</td>
			<td class="passwordChange">
				<table cellpadding="0" cellspacing="5" width="100%">
					<tr id="form-item_cur_pass">
						<td width="40%">Current Password</td>
						<td>
							<input type="password" name="cur_pass" id="cur_pass" value="" />
							<p class="error_descr"></p>
						</td>
					</tr>
					<tr id="form-item_new_pass">
						<td>New Password</td>
						<td>
							<input type="password" name="new_pass" id="new_pass" value="" />
							<p class="error_descr"></p>
						</td>
					</tr>
					<tr id="">
						<td>&nbsp;</td>
						<td>
								<small style="color:#ff0000;">Attention! Password must be rather complex, 5 to 15 characters long, and it must contain at least two of three character types: lowercase, uppercase, or digits.</small>
						</td>
					</tr>
					<tr id="form-item_new_pass2">
						<td>Confirm Password</td>
						<td>
							<input type="password" name="new_pass2" id="new_pass2" value="" />
							<p class="error_descr"></p>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>
							<input type="submit" value="Continue" class="submit" />
						</td>
					</tr>
				</table>
			</td>
			<td class="passwordRestore" style="display:none;">
				<table cellpadding="0" cellspacing="5" width="100%">
					<tr>
						<td width="40%">&nbsp;</td>
						<td><a href="#" id="captchaAnchor"><?=$captcha['image']?></a> <br /><a href="" id="reload-captcha">(reload)</a></td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
					<tr id="form-item_captcha">
						<td>Type word from picture</td>
						<td>
							<input type="text" name="captcha" id="captcha" />
							<p class="error_descr"></p>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td>
							<input type="submit" value="Continue" class="submit" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
		</tr>

	</table>
</form>